import {Component} from 'react';
import RouterView from './router';
import {NavLink} from 'react-router-dom'
class App extends Component{
    render(){
        return(
            <div>
                <h1>路由表</h1>
                <NavLink to='/home'>首页</NavLink> |
                <NavLink to='/mine'>我的</NavLink> |
                <NavLink to='/info'>详情</NavLink> |
                <RouterView/>
            </div>
        )
    }
}
export default App;